import { Controller, Get, Post,Param, Body, Patch } from '@nestjs/common';
import { SignService } from './sign.service';

@Controller('sign')
export class SignController {
  constructor(private readonly luckService: SignService) {}

  @Get('/:id')
  async findOne(@Param('id') id): Promise<{}> {
    return await this.luckService.findOne(id);
  }

  @Post('/')
  async createSign(@Body() body): Promise<{}>{
    return await this.luckService.createSign(body);
  }
}
